<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IgH EtherCAT Master: foe_request.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">IgH EtherCAT Master
   &#160;<span id="projectnumber">1.5.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('foe__request_8c_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">foe_request.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="foe__request_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *  $Id: foe_request.c,v ec403cf308eb 2013/02/12 14:46:43 fp $</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  Copyright (C) 2008  Olav Zarges, imc Messsysteme GmbH</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *  This file is part of the IgH EtherCAT Master.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *  The IgH EtherCAT Master is free software; you can redistribute it and/or</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *  modify it under the terms of the GNU General Public License version 2, as</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *  published by the Free Software Foundation.</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *  The IgH EtherCAT Master is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *  Public License for more details.</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *  You should have received a copy of the GNU General Public License along</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *  with the IgH EtherCAT Master; if not, write to the Free Software</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *  ---</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *  The license mentioned above concerns the source code only. Using the</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> *  EtherCAT technology and brand is only permitted in compliance with the</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *  industrial property and similar rights of Beckhoff Automation GmbH.</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> *****************************************************************************/</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &lt;linux/module.h&gt;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &lt;linux/jiffies.h&gt;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &lt;linux/slab.h&gt;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="foe__request_8h.html">foe_request.h</a>&quot;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="foe_8h.html">foe.h</a>&quot;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="foe__request_8c.html#abb224b1d4a9cdbad17f5e3403e962784">   47</a></span>&#160;<span class="preprocessor">#define EC_FOE_REQUEST_RESPONSE_TIMEOUT 3000</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="keywordtype">void</span> <a class="code" href="foe__request_8c.html#ad58b94538d29363f9132f222ef574a74">ec_foe_request_clear_data</a>(<a class="code" href="structec__foe__request__t.html">ec_foe_request_t</a> *);</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="foe__request_8h.html#a8ec7eb3a68e44417778afb1e43ac3e70">   57</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="foe__request_8c.html#a3bf07dbd22177d67d2378d6d4849f82d">ec_foe_request_init</a>(</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <a class="code" href="structec__foe__request__t.html">ec_foe_request_t</a> *req, </div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        uint8_t* file_name )</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;{</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    INIT_LIST_HEAD(&amp;req-&gt;<a class="code" href="structec__foe__request__t.html#a3934835725b006bc6268d2553234901a">list</a>);</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a9f6af09dc6347bb9139f488c7ca48427">buffer</a> = NULL;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a9ff443ccddd8bd0492f364abb7fd4a32">file_name</a> = file_name;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a5cf1b56bd0f3406f9cf36650fc5ac7aa">buffer_size</a> = 0;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#aa7b6efa4a99fe568f8f53ae0b2ebc2e4">data_size</a> = 0;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a28940cc34e5ddb8a960cc459040bbcc9">dir</a> = <a class="code" href="group__ApplicationInterface.html#gga703c4e47384b3601e7605d6d910aaba1a1d65420e76eb63b731b1148054c40054">EC_DIR_INVALID</a>;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a313c264273fbc3dc6b7aa4a177dd1505">issue_timeout</a> = 0; <span class="comment">// no timeout</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a347a7ba58a6616319766bc65e2957ef9">response_timeout</a> = <a class="code" href="foe__request_8c.html#abb224b1d4a9cdbad17f5e3403e962784">EC_FOE_REQUEST_RESPONSE_TIMEOUT</a>;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#afd59d6b4eb03fe6f05a20179cef9ac5e">state</a> = EC_INT_REQUEST_INIT;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a3755f2ecc7d79a09afc8d567b11b7aef">result</a> = <a class="code" href="foe_8h.html#a1a3752c2c35892afeaf65cac5615c659aacad8c11589f51ab29e655b3e1f1b636">FOE_BUSY</a>;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a61bb591aa99ad14d759e67c687b11d5d">error_code</a> = 0x00000000;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;}</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="foe__request_8h.html#a283c9080b0bde8595ed2d6833976013c">   78</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="foe__request_8c.html#ac9c5c98c785cf2395cdf437fefedcdaf">ec_foe_request_clear</a>(</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        <a class="code" href="structec__foe__request__t.html">ec_foe_request_t</a> *req </div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        )</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;{</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <a class="code" href="foe__request_8c.html#ad58b94538d29363f9132f222ef574a74">ec_foe_request_clear_data</a>(req);</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;}</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="foe__request_8c.html#ad58b94538d29363f9132f222ef574a74">   89</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="foe__request_8c.html#ad58b94538d29363f9132f222ef574a74">ec_foe_request_clear_data</a>(</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <a class="code" href="structec__foe__request__t.html">ec_foe_request_t</a> *req </div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        )</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;{</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="keywordflow">if</span> (req-&gt;<a class="code" href="structec__foe__request__t.html#a9f6af09dc6347bb9139f488c7ca48427">buffer</a>) {</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        kfree(req-&gt;<a class="code" href="structec__foe__request__t.html#a9f6af09dc6347bb9139f488c7ca48427">buffer</a>);</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        req-&gt;<a class="code" href="structec__foe__request__t.html#a9f6af09dc6347bb9139f488c7ca48427">buffer</a> = NULL;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    }</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a5cf1b56bd0f3406f9cf36650fc5ac7aa">buffer_size</a> = 0;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#aa7b6efa4a99fe568f8f53ae0b2ebc2e4">data_size</a> = 0;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;}</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="foe__request_8h.html#a0db146bc39fccd8d77e8e854578e1ede">  111</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="foe__request_8c.html#a21195eb686c217bbf70ba0cde620db52">ec_foe_request_alloc</a>(</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <a class="code" href="structec__foe__request__t.html">ec_foe_request_t</a> *req, </div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        <span class="keywordtype">size_t</span> size </div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        )</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;{</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="keywordflow">if</span> (size &lt;= req-&gt;buffer_size) {</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    }</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <a class="code" href="foe__request_8c.html#ad58b94538d29363f9132f222ef574a74">ec_foe_request_clear_data</a>(req);</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keywordflow">if</span> (!(req-&gt;<a class="code" href="structec__foe__request__t.html#a9f6af09dc6347bb9139f488c7ca48427">buffer</a> = (uint8_t *) kmalloc(size, GFP_KERNEL))) {</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <a class="code" href="globals_8h.html#aed23297031f2f23bb5d005bb586790cf">EC_ERR</a>(<span class="stringliteral">&quot;Failed to allocate %zu bytes of FoE memory.\n&quot;</span>, size);</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="keywordflow">return</span> -ENOMEM;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    }</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a5cf1b56bd0f3406f9cf36650fc5ac7aa">buffer_size</a> = size;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#aa7b6efa4a99fe568f8f53ae0b2ebc2e4">data_size</a> = 0;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;}</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="foe__request_8h.html#ad0fd5c910a3cac6d03f5be9c9ca9342d">  140</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="foe__request_8c.html#a0da867374db00df58d806644209cf1cb">ec_foe_request_copy_data</a>(</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        <a class="code" href="structec__foe__request__t.html">ec_foe_request_t</a> *req, </div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        <span class="keyword">const</span> uint8_t *source, </div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        <span class="keywordtype">size_t</span> size </div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        )</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;{</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keywordtype">int</span> ret;</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    ret = <a class="code" href="foe__request_8c.html#a21195eb686c217bbf70ba0cde620db52">ec_foe_request_alloc</a>(req, size);</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keywordflow">if</span> (ret) {</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    }</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    memcpy(req-&gt;<a class="code" href="structec__foe__request__t.html#a9f6af09dc6347bb9139f488c7ca48427">buffer</a>, source, size);</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#aa7b6efa4a99fe568f8f53ae0b2ebc2e4">data_size</a> = size;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;}</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="foe__request_8h.html#ab459e58b81d2f39cd01c7a01e737af8c">  164</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="foe__request_8c.html#a1951f5cf5abf840d0a8458b11c7ce060">ec_foe_request_timed_out</a>(</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        <span class="keyword">const</span> <a class="code" href="structec__foe__request__t.html">ec_foe_request_t</a> *req </div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        )</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;{</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <span class="keywordflow">return</span> req-&gt;<a class="code" href="structec__foe__request__t.html#a313c264273fbc3dc6b7aa4a177dd1505">issue_timeout</a></div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        &amp;&amp; jiffies - req-&gt;<a class="code" href="structec__foe__request__t.html#a3fef682f7dcd197e1fa74cf90a2e8963">jiffies_start</a> &gt; HZ * req-&gt;<a class="code" href="structec__foe__request__t.html#a313c264273fbc3dc6b7aa4a177dd1505">issue_timeout</a> / 1000;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;}</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="foe__request_8c.html#a9690708688a0d25c257deaf386fbc7b6">  176</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="foe__request_8c.html#a9690708688a0d25c257deaf386fbc7b6">ec_foe_request_timeout</a>(</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;        <a class="code" href="structec__foe__request__t.html">ec_foe_request_t</a> *req, </div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;        uint32_t timeout </div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        )</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;{</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a313c264273fbc3dc6b7aa4a177dd1505">issue_timeout</a> = timeout;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;}</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="foe__request_8c.html#a476b47a2c569870be295e5bb70cf68df">  190</a></span>&#160;uint8_t *<a class="code" href="foe__request_8c.html#a476b47a2c569870be295e5bb70cf68df">ec_foe_request_data</a>(</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        <a class="code" href="structec__foe__request__t.html">ec_foe_request_t</a> *req </div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        )</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;{</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <span class="keywordflow">return</span> req-&gt;<a class="code" href="structec__foe__request__t.html#a9f6af09dc6347bb9139f488c7ca48427">buffer</a>;</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;}</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="foe__request_8c.html#a1d657fe94180c35e0651134f3dda6876">  203</a></span>&#160;<span class="keywordtype">size_t</span> <a class="code" href="foe__request_8c.html#a1d657fe94180c35e0651134f3dda6876">ec_foe_request_data_size</a>(</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        <span class="keyword">const</span> <a class="code" href="structec__foe__request__t.html">ec_foe_request_t</a> *req </div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;        )</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;{</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <span class="keywordflow">return</span> req-&gt;<a class="code" href="structec__foe__request__t.html#aa7b6efa4a99fe568f8f53ae0b2ebc2e4">data_size</a>;</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;}</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;</div><div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="foe__request_8h.html#a2ea1641840c50e93b9c1d22257677d9c">  214</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="foe__request_8c.html#a1abc468b6ec2292415b084f15beeb3d4">ec_foe_request_read</a>(</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        <a class="code" href="structec__foe__request__t.html">ec_foe_request_t</a> *req </div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        )</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;{</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a28940cc34e5ddb8a960cc459040bbcc9">dir</a> = <a class="code" href="group__ApplicationInterface.html#gga703c4e47384b3601e7605d6d910aaba1a6b3c6b53010076d846724fec434512e4">EC_DIR_INPUT</a>;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#afd59d6b4eb03fe6f05a20179cef9ac5e">state</a> = EC_INT_REQUEST_QUEUED;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a3755f2ecc7d79a09afc8d567b11b7aef">result</a> = <a class="code" href="foe_8h.html#a1a3752c2c35892afeaf65cac5615c659aacad8c11589f51ab29e655b3e1f1b636">FOE_BUSY</a>;</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a3fef682f7dcd197e1fa74cf90a2e8963">jiffies_start</a> = jiffies;</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;}</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div><div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="foe__request_8h.html#ad55e368490ade6fcb317302be6b4d684">  228</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="foe__request_8c.html#a097a26d460304eb8b84a9a9d21345048">ec_foe_request_write</a>(</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        <a class="code" href="structec__foe__request__t.html">ec_foe_request_t</a> *req </div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;        )</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;{</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a28940cc34e5ddb8a960cc459040bbcc9">dir</a> = <a class="code" href="group__ApplicationInterface.html#gga703c4e47384b3601e7605d6d910aaba1aebf26f1d5c09cf002af5b09d9cb59b78">EC_DIR_OUTPUT</a>;</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#afd59d6b4eb03fe6f05a20179cef9ac5e">state</a> = EC_INT_REQUEST_QUEUED;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a3755f2ecc7d79a09afc8d567b11b7aef">result</a> = <a class="code" href="foe_8h.html#a1a3752c2c35892afeaf65cac5615c659aacad8c11589f51ab29e655b3e1f1b636">FOE_BUSY</a>;</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    req-&gt;<a class="code" href="structec__foe__request__t.html#a3fef682f7dcd197e1fa74cf90a2e8963">jiffies_start</a> = jiffies;</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;}</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="ttc" id="structec__foe__request__t_html_a28940cc34e5ddb8a960cc459040bbcc9"><div class="ttname"><a href="structec__foe__request__t.html#a28940cc34e5ddb8a960cc459040bbcc9">ec_foe_request_t::dir</a></div><div class="ttdeci">ec_direction_t dir</div><div class="ttdoc">Direction. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8h_source.html#l00060">foe_request.h:60</a></div></div>
<div class="ttc" id="foe__request_8c_html_a1951f5cf5abf840d0a8458b11c7ce060"><div class="ttname"><a href="foe__request_8c.html#a1951f5cf5abf840d0a8458b11c7ce060">ec_foe_request_timed_out</a></div><div class="ttdeci">int ec_foe_request_timed_out(const ec_foe_request_t *req)</div><div class="ttdoc">Checks, if the timeout was exceeded. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8c_source.html#l00164">foe_request.c:164</a></div></div>
<div class="ttc" id="foe__request_8c_html_a097a26d460304eb8b84a9a9d21345048"><div class="ttname"><a href="foe__request_8c.html#a097a26d460304eb8b84a9a9d21345048">ec_foe_request_write</a></div><div class="ttdeci">void ec_foe_request_write(ec_foe_request_t *req)</div><div class="ttdoc">Prepares a write request (master to slave). </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8c_source.html#l00228">foe_request.c:228</a></div></div>
<div class="ttc" id="foe__request_8c_html_a21195eb686c217bbf70ba0cde620db52"><div class="ttname"><a href="foe__request_8c.html#a21195eb686c217bbf70ba0cde620db52">ec_foe_request_alloc</a></div><div class="ttdeci">int ec_foe_request_alloc(ec_foe_request_t *req, size_t size)</div><div class="ttdoc">Pre-allocates the data memory. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8c_source.html#l00111">foe_request.c:111</a></div></div>
<div class="ttc" id="structec__foe__request__t_html_a3755f2ecc7d79a09afc8d567b11b7aef"><div class="ttname"><a href="structec__foe__request__t.html#a3755f2ecc7d79a09afc8d567b11b7aef">ec_foe_request_t::result</a></div><div class="ttdeci">uint32_t result</div><div class="ttdoc">FoE request abort code. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8h_source.html#l00068">foe_request.h:68</a></div></div>
<div class="ttc" id="structec__foe__request__t_html_a347a7ba58a6616319766bc65e2957ef9"><div class="ttname"><a href="structec__foe__request__t.html#a347a7ba58a6616319766bc65e2957ef9">ec_foe_request_t::response_timeout</a></div><div class="ttdeci">uint32_t response_timeout</div><div class="ttdoc">Maximum time in ms, the transfer is retried, if the slave does not respond. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8h_source.html#l00058">foe_request.h:58</a></div></div>
<div class="ttc" id="foe__request_8c_html_a9690708688a0d25c257deaf386fbc7b6"><div class="ttname"><a href="foe__request_8c.html#a9690708688a0d25c257deaf386fbc7b6">ec_foe_request_timeout</a></div><div class="ttdeci">void ec_foe_request_timeout(ec_foe_request_t *req, uint32_t timeout)</div><div class="ttdoc">Set the request timeout. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8c_source.html#l00176">foe_request.c:176</a></div></div>
<div class="ttc" id="foe__request_8c_html_ad58b94538d29363f9132f222ef574a74"><div class="ttname"><a href="foe__request_8c.html#ad58b94538d29363f9132f222ef574a74">ec_foe_request_clear_data</a></div><div class="ttdeci">void ec_foe_request_clear_data(ec_foe_request_t *)</div><div class="ttdoc">FoE request destructor. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8c_source.html#l00089">foe_request.c:89</a></div></div>
<div class="ttc" id="foe__request_8c_html_ac9c5c98c785cf2395cdf437fefedcdaf"><div class="ttname"><a href="foe__request_8c.html#ac9c5c98c785cf2395cdf437fefedcdaf">ec_foe_request_clear</a></div><div class="ttdeci">void ec_foe_request_clear(ec_foe_request_t *req)</div><div class="ttdoc">FoE request destructor. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8c_source.html#l00078">foe_request.c:78</a></div></div>
<div class="ttc" id="structec__foe__request__t_html_a5cf1b56bd0f3406f9cf36650fc5ac7aa"><div class="ttname"><a href="structec__foe__request__t.html#a5cf1b56bd0f3406f9cf36650fc5ac7aa">ec_foe_request_t::buffer_size</a></div><div class="ttdeci">size_t buffer_size</div><div class="ttdoc">Size of FoE data memory. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8h_source.html#l00053">foe_request.h:53</a></div></div>
<div class="ttc" id="foe__request_8c_html_abb224b1d4a9cdbad17f5e3403e962784"><div class="ttname"><a href="foe__request_8c.html#abb224b1d4a9cdbad17f5e3403e962784">EC_FOE_REQUEST_RESPONSE_TIMEOUT</a></div><div class="ttdeci">#define EC_FOE_REQUEST_RESPONSE_TIMEOUT</div><div class="ttdoc">Default timeout in ms to wait for FoE transfer responses. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8c_source.html#l00047">foe_request.c:47</a></div></div>
<div class="ttc" id="structec__foe__request__t_html_a9f6af09dc6347bb9139f488c7ca48427"><div class="ttname"><a href="structec__foe__request__t.html#a9f6af09dc6347bb9139f488c7ca48427">ec_foe_request_t::buffer</a></div><div class="ttdeci">uint8_t * buffer</div><div class="ttdoc">Pointer to FoE data. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8h_source.html#l00052">foe_request.h:52</a></div></div>
<div class="ttc" id="foe_8h_html_a1a3752c2c35892afeaf65cac5615c659aacad8c11589f51ab29e655b3e1f1b636"><div class="ttname"><a href="foe_8h.html#a1a3752c2c35892afeaf65cac5615c659aacad8c11589f51ab29e655b3e1f1b636">FOE_BUSY</a></div><div class="ttdoc">Busy. </div><div class="ttdef"><b>Definition:</b> <a href="foe_8h_source.html#l00042">foe.h:42</a></div></div>
<div class="ttc" id="foe__request_8h_html"><div class="ttname"><a href="foe__request_8h.html">foe_request.h</a></div><div class="ttdoc">EtherCAT FoE request structure. </div></div>
<div class="ttc" id="foe__request_8c_html_a3bf07dbd22177d67d2378d6d4849f82d"><div class="ttname"><a href="foe__request_8c.html#a3bf07dbd22177d67d2378d6d4849f82d">ec_foe_request_init</a></div><div class="ttdeci">void ec_foe_request_init(ec_foe_request_t *req, uint8_t *file_name)</div><div class="ttdoc">FoE request constructor. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8c_source.html#l00057">foe_request.c:57</a></div></div>
<div class="ttc" id="foe__request_8c_html_a0da867374db00df58d806644209cf1cb"><div class="ttname"><a href="foe__request_8c.html#a0da867374db00df58d806644209cf1cb">ec_foe_request_copy_data</a></div><div class="ttdeci">int ec_foe_request_copy_data(ec_foe_request_t *req, const uint8_t *source, size_t size)</div><div class="ttdoc">Copies FoE data from an external source. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8c_source.html#l00140">foe_request.c:140</a></div></div>
<div class="ttc" id="foe__request_8c_html_a476b47a2c569870be295e5bb70cf68df"><div class="ttname"><a href="foe__request_8c.html#a476b47a2c569870be295e5bb70cf68df">ec_foe_request_data</a></div><div class="ttdeci">uint8_t * ec_foe_request_data(ec_foe_request_t *req)</div><div class="ttdoc">Returns a pointer to the request&amp;#39;s data. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8c_source.html#l00190">foe_request.c:190</a></div></div>
<div class="ttc" id="group__ApplicationInterface_html_gga703c4e47384b3601e7605d6d910aaba1a6b3c6b53010076d846724fec434512e4"><div class="ttname"><a href="group__ApplicationInterface.html#gga703c4e47384b3601e7605d6d910aaba1a6b3c6b53010076d846724fec434512e4">EC_DIR_INPUT</a></div><div class="ttdoc">Values read by the master. </div><div class="ttdef"><b>Definition:</b> <a href="ecrt_8h_source.html#l00420">ecrt.h:420</a></div></div>
<div class="ttc" id="foe_8h_html"><div class="ttname"><a href="foe_8h.html">foe.h</a></div><div class="ttdoc">FoE defines. </div></div>
<div class="ttc" id="structec__foe__request__t_html_aa7b6efa4a99fe568f8f53ae0b2ebc2e4"><div class="ttname"><a href="structec__foe__request__t.html#aa7b6efa4a99fe568f8f53ae0b2ebc2e4">ec_foe_request_t::data_size</a></div><div class="ttdeci">size_t data_size</div><div class="ttdoc">Size of FoE data. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8h_source.html#l00054">foe_request.h:54</a></div></div>
<div class="ttc" id="structec__foe__request__t_html_a9ff443ccddd8bd0492f364abb7fd4a32"><div class="ttname"><a href="structec__foe__request__t.html#a9ff443ccddd8bd0492f364abb7fd4a32">ec_foe_request_t::file_name</a></div><div class="ttdeci">uint8_t * file_name</div><div class="ttdoc">Pointer to the filename. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8h_source.html#l00067">foe_request.h:67</a></div></div>
<div class="ttc" id="structec__foe__request__t_html"><div class="ttname"><a href="structec__foe__request__t.html">ec_foe_request_t</a></div><div class="ttdoc">FoE request. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8h_source.html#l00050">foe_request.h:50</a></div></div>
<div class="ttc" id="group__ApplicationInterface_html_gga703c4e47384b3601e7605d6d910aaba1a1d65420e76eb63b731b1148054c40054"><div class="ttname"><a href="group__ApplicationInterface.html#gga703c4e47384b3601e7605d6d910aaba1a1d65420e76eb63b731b1148054c40054">EC_DIR_INVALID</a></div><div class="ttdoc">Invalid direction. </div><div class="ttdef"><b>Definition:</b> <a href="ecrt_8h_source.html#l00418">ecrt.h:418</a></div></div>
<div class="ttc" id="globals_8h_html_aed23297031f2f23bb5d005bb586790cf"><div class="ttname"><a href="globals_8h.html#aed23297031f2f23bb5d005bb586790cf">EC_ERR</a></div><div class="ttdeci">#define EC_ERR(fmt, args...)</div><div class="ttdoc">Convenience macro for printing EtherCAT-specific errors to syslog. </div><div class="ttdef"><b>Definition:</b> <a href="globals_8h_source.html#l00227">globals.h:227</a></div></div>
<div class="ttc" id="structec__foe__request__t_html_a3fef682f7dcd197e1fa74cf90a2e8963"><div class="ttname"><a href="structec__foe__request__t.html#a3fef682f7dcd197e1fa74cf90a2e8963">ec_foe_request_t::jiffies_start</a></div><div class="ttdeci">unsigned long jiffies_start</div><div class="ttdoc">Jiffies, when the request was issued. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8h_source.html#l00064">foe_request.h:64</a></div></div>
<div class="ttc" id="foe__request_8c_html_a1abc468b6ec2292415b084f15beeb3d4"><div class="ttname"><a href="foe__request_8c.html#a1abc468b6ec2292415b084f15beeb3d4">ec_foe_request_read</a></div><div class="ttdeci">void ec_foe_request_read(ec_foe_request_t *req)</div><div class="ttdoc">Prepares a read request (slave to master). </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8c_source.html#l00214">foe_request.c:214</a></div></div>
<div class="ttc" id="structec__foe__request__t_html_a61bb591aa99ad14d759e67c687b11d5d"><div class="ttname"><a href="structec__foe__request__t.html#a61bb591aa99ad14d759e67c687b11d5d">ec_foe_request_t::error_code</a></div><div class="ttdeci">uint32_t error_code</div><div class="ttdoc">Error code from an FoE Error Request. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8h_source.html#l00069">foe_request.h:69</a></div></div>
<div class="ttc" id="structec__foe__request__t_html_afd59d6b4eb03fe6f05a20179cef9ac5e"><div class="ttname"><a href="structec__foe__request__t.html#afd59d6b4eb03fe6f05a20179cef9ac5e">ec_foe_request_t::state</a></div><div class="ttdeci">ec_internal_request_state_t state</div><div class="ttdoc">FoE request state. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8h_source.html#l00063">foe_request.h:63</a></div></div>
<div class="ttc" id="group__ApplicationInterface_html_gga703c4e47384b3601e7605d6d910aaba1aebf26f1d5c09cf002af5b09d9cb59b78"><div class="ttname"><a href="group__ApplicationInterface.html#gga703c4e47384b3601e7605d6d910aaba1aebf26f1d5c09cf002af5b09d9cb59b78">EC_DIR_OUTPUT</a></div><div class="ttdoc">Values written by the master. </div><div class="ttdef"><b>Definition:</b> <a href="ecrt_8h_source.html#l00419">ecrt.h:419</a></div></div>
<div class="ttc" id="structec__foe__request__t_html_a313c264273fbc3dc6b7aa4a177dd1505"><div class="ttname"><a href="structec__foe__request__t.html#a313c264273fbc3dc6b7aa4a177dd1505">ec_foe_request_t::issue_timeout</a></div><div class="ttdeci">uint32_t issue_timeout</div><div class="ttdoc">Maximum time in ms, the processing of the request may take. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8h_source.html#l00056">foe_request.h:56</a></div></div>
<div class="ttc" id="foe__request_8c_html_a1d657fe94180c35e0651134f3dda6876"><div class="ttname"><a href="foe__request_8c.html#a1d657fe94180c35e0651134f3dda6876">ec_foe_request_data_size</a></div><div class="ttdeci">size_t ec_foe_request_data_size(const ec_foe_request_t *req)</div><div class="ttdoc">Returns the data size. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8c_source.html#l00203">foe_request.c:203</a></div></div>
<div class="ttc" id="structec__foe__request__t_html_a3934835725b006bc6268d2553234901a"><div class="ttname"><a href="structec__foe__request__t.html#a3934835725b006bc6268d2553234901a">ec_foe_request_t::list</a></div><div class="ttdeci">struct list_head list</div><div class="ttdoc">List item. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8h_source.html#l00051">foe_request.h:51</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_c1346cf4828efdd0d2baf0d391d01b77.html">master</a></li><li class="navelem"><a class="el" href="foe__request_8c.html">foe_request.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
